import request from './index'

/**
 * 登录
 * @param data
 */

//账号登录
export const loginByAccount = async (data: object) => request('/admin/login/paw', 'POST', data)

//标签列表
export const getTagList = async (data: object) => request('/admin/label/findAdditionalLabelList', 'GET', data)
//标签保存
export const postTagList = async (data: object) => request('/admin/label/saveAdditionalLabel', 'POST', data)
//标签删除
export const deleteTagList = async (data: object) => request('/admin/label/deleteUserInfo', 'DELETE', data)

//店铺信息
export const getShopInfo = async (data: object) => request('/admin/dryCleaners/findDryCleaners', 'GET', data)
//店铺信息编辑
export const postShopInfo = async (data: object) => request('/admin/dryCleaners/updateDryCleaners', 'POST', data)

//洗衣订单列表
export const getWashOrderList = async (data: object) => request('/api/order/findAdminDryOrderList', 'GET', data)
//完成订单
export const postWashOrderList = async (data: object) => request('/api/order/operationDryOrder', 'POST', data)
//用户发送消息
export const postUserMessage = async (data: object) => request('/admin/message/createUserMessageAdmin', 'POST', data)
//用户消息删除
export const deleteUserMessage = async (data: object) => request('/admin/message/deleteMessage', 'DELETE', data)
//用户消息列表
export const AccUserList = async (data: object) => request('/admin/message/findUserMessageListAdmin', 'GET', data)
//用户消息删除
export const deleteUserMessageList = async (data: object) => request('/admin/message/delUserMessageAdmin', 'DELETE', data)
//账号批量新增
export const postUserList = async (data: object) => request('/admin/user/saveUser', 'POST', data)
//游客信息删除
export const deleteUserList = async (data: object) => request('/admin/user/deleteTouristInfo', 'DELETE', data)
//游客数据列表
export const getUserDataList = async (data: object) => request('/admin/user/findTouristInfoList', 'GET', data)
//账号列表
export const getUserList = async (data: object) => request('/admin/user/findUserInfoList', 'GET', data)

//未读消息
export const getUserMessage = async () => request('/api/order/findUnreadDryOrderList', 'GET', {})

//账号编辑
export const AccPostUserList = async (data: object) => request('/admin/user/updateUserInfo', 'POST', data)
//账号删除
export const AccDeleteUserList = async (data: object) => request('/admin/user/deleteUserInfo', 'DELETE', data)
//特殊项全匹配
export const allApiType = async (url: string, method: string, data: any) => request(url, method, data)
//数据初始化
export const getInitDataApi = async (data:object) => request('/admin/InitsInitDate/findInitDataPage', 'GET', data)
//消息已读
export const getMessageRead = async (data:object) => request('/api/order/operationOrderRead', 'POST', data)
//新增单个用户
export const postUser = async (data: object) => request('/admin/user/batchAddUserInfo', 'RAW', data)
//游客信息未读列表
export const getUserMessageList = async () => request('/admin/user/findUnreadTouristInfoList', 'GET', {})
//游客信息已读
export const getUserMessageRead = async (data: object) => request('/admin/user/updateNotUnreadTouristInfo', 'POST', data)

//价格列表
export const getPriceList = async (data: object) => request('/admin/price/findPriceInfoList', 'GET', data)
//删除价格
export const deletePriceList = async (data: object) => request('/admin/price/deletePriceInfo', 'DELETE', data)
//添加价格
export const postPriceList = async (data: object) => request('/admin/price/savePriceInfo', 'POST', data)



